package com.yfjin.webrtc;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.os.Environment;
import android.view.View;

import java.io.File;

public class MainActivity extends AppCompatActivity {

    ManiuSurfaceView maniuSurfaceView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        File file=new File(Environment.getExternalStorageDirectory().getPath(),"camera.h264");
        File file2=new File(Environment.getExternalStorageDirectory().getPath(),"camera.txt");

        file.delete();
        file2.delete();


        maniuSurfaceView = (ManiuSurfaceView) findViewById(R.id.surface);
    }

    public void captrue(View view) {
        maniuSurfaceView.startCaptrue();
    }
}